{include file="static/appm/tpl_header.html" /}
<body xmlns="http://www.w3.org/1999/html">
<div class="weui-tab container">
    {if condition="!empty($data.portrait)"}
    <a href="{:urlBuild('!.');}#user" title="返回">
        <img src="{$data.portrait}" style="max-width: 95%;padding-left: 10px;">
    </a>
    {else}
    <div class="page__hd">
        <h1 class="page__title">
            <a href="{:urlBuild('!.');}#user">
                <img src="/aurora-appm.png" alt="Aurora" height="50px">
            </a>
            个人中心
        </h1>
    </div>
    {/if}
    <div class="weui-flex aurora-border"></div>
    <div class="weui-panel">
        <div class="weui-form-preview">
            <div class="weui-form-preview__hd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">账号</label>
                    <em class="weui-form-preview__value">{$data.account}</em>
                </div>
            </div>
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">姓名</label>
                    <span class="weui-form-preview__value">{$data.name}</span>
                </div>
                {if condition="!empty($data.birthday)"}
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">生日</label>
                    <span class="weui-form-preview__value">{$data.birthday}</span>
                </div>
                {/if}
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">性别</label>
                    <span class="weui-form-preview__value">{if condition="$data.gender eq 'M'"}<i class="fa fa-mars"></i> 男{else}<i class="fa fa-venus"></i> 女{/if}</span>
                </div>
                {if condition="!empty($data.city)"}
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">所在城市</label>
                    <span class="weui-form-preview__value">{$data.city}</span>
                </div>
                {/if}
                {if condition="!empty($data.phone)"}
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">手机号</label>
                    <span class="weui-form-preview__value">{$data.phone}</span>
                </div>
                {/if}
                {if condition="!empty($data.email)"}
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">邮箱</label>
                    <span class="weui-form-preview__value">{$data.email}</span>
                </div>
                {/if}
                <div class="weui-flex aurora-border"></div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">注册时间</label>
                    <span class="weui-form-preview__value">{$data.register_time}</span>
                </div>
                {if condition="!empty($data.register_ip)"}
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">注册ip</label>
                    <span class="weui-form-preview__value">{$data.register_ip}</span>
                </div>
                {/if}
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">登录累计</label>
                    <span class="weui-form-preview__value">{$data.login_count}</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">登录时间</label>
                    <span class="weui-form-preview__value">{$data.last_time}</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">登录ip</label>
                    <span class="weui-form-preview__value">{$data.last_ip}</span>
                </div>
            </div>
        </div>
    </div>
    <div class="weui-flex aurora-border"></div>
    <div class="weui-cells__title">操作</div>
    <div class="weui-cells">
        <a class="weui-cell weui-cell_access" href="{:url('user/edit')}">
            <div class="weui-cell__bd">
                <p><i class="fa fa-pencil-square text-primary"></i> 修改个人信息</p>
            </div>
            <div class="weui-cell__ft">
            </div>
        </a>
        <a class="weui-cell weui-cell_access" href="{:url('user/password')}">
            <div class="weui-cell__bd">
                <p><i class="fa fa-lock text-danger"></i> 修改密码</p>
            </div>
            <div class="weui-cell__ft">
            </div>
        </a>
        <a class="weui-cell weui-cell_access" href="{:url('verify/index')}">
            <div class="weui-cell__bd">
                <p><i class="fa fa-address-book text-info"></i> 修改邮箱</p>
            </div>
            <div class="weui-cell__ft">
            </div>
        </a>
        <a class="weui-cell weui-cell_access" href="{:url('user/portrait')}">
            <div class="weui-cell__bd">
                <p><i class="fa fa-photo text-info"></i> 头像</p>
            </div>
            <div class="weui-cell__ft">
            </div>
        </a>
    </div>
    <div class="weui-flex aurora-border"></div>
    <div class="weui-footer">
        <p class="weui-footer__links">
            <a href="javascript:void(0);" class="weui-footer__link">版本号: v{$Think.config.setting.version}({$Think.config.setting.build})</a>
        </p>
        <p class="weui-footer__text">Copyright &copy; {$Think.config.setting.start}-{:date('Y');} {$Think.config.setting.organization}</p>
    </div>
</div>